package com.graduate.exception;

public enum ExceptionEnum implements BaseErrorInfoInterface {
    // 数据操作错误定义
    SUCCESS("200", "成功!"),
    BODY_NOT_MATCH("400","请求的body数据格式不符!"),
    PARAM_NOT_MATCH("400","请求的param数据格式不符!"),
    BODY_IS_LOSE("402","请求的body数据缺失!"),
    PARAM_IS_LOSE("402","请求的param数据缺失!"),
    BODY_IS_NULL("403","请求的body数据为空!"),
    PARAM_IS_NULL("403","请求的param数据为空!"),
    DATA_IS_NULL("405","数据为空"),
    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),
    IMAGE_UPLOAD_ERROR("408","图片upload失败"),
    SERVER_BUSY("503","服务器正忙，请稍后再试!");



    /** 错误码 */
    private String respCode;

    /** 错误描述 */
    private String respMsg;

    ExceptionEnum(String respCode, String respMsg) {
        this.respCode = respCode;
        this.respMsg = respMsg;
    }


    @Override
    public String getRespCode() {
        return respCode;
    }

    @Override
    public String getRespMsg() {
        return respMsg;
    }
}
